package com.jiangsong.messy.fanxing;

public class PoolService {

    public <T extends Pool> void query(T pool) {
        pool.common();
        pool.execute();
        pool.extra();
    }


    public static void main(String[] args) {
        PoolService poolService = new PoolService();
        poolService.query(new AvgPool());
        poolService.query(new DumPool());
    }
}
